#include <iostream>
using namespace std;
class Complex{
public:
    Complex(int real,int image)
    :_real(real)
    ,_image(image)
    {

    }
    Complex operator+(const Complex & rhs){
        Complex temp(_real+rhs._real,_image+rhs._image);
        return temp;
    }
    void print(){
        cout<<_real<<"+"<<_image<<"i"<<endl;
    }
private:
    int _real;
    int _image;
};
void test(){
    Complex co(1,2),co2(2,3);
    Complex co3=co+co2;
    co3.print();
}
int main(int argc, char * argv[]){
    test();
    return 0;
}

